<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"  content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico"> -->
    <title>test-sport</title>
    <script>
        window.prj = {
            name: '<%=process.env.VUE_APP_PROJECT_NAME%>',
            version: '<%=process.env.VUE_APP_PROJECT_VERSION%>',
            web_env: '<%=process.env.VUE_APP_WEB_ENV%>',
            api_env: '<%=process.env.VUE_APP_API_ENV%>'
        }

        //init log
        prj_log('web-project：' + window.prj.name)
        prj_log('web-version：' + window.prj.version)
        prj_log('web-env：' + window.prj.web_env)
        prj_log('api-env：' + window.prj.api_env)

        function prj_log (cnt) {
            console.log('[PRJ] ' + cnt)
        }
    </script>
    <script type="text/javascript" src="https://cdn.staticfile.org/vue/2.6.10/vue.min.js"></script>
    <script type="text/javascript" src="https://cdn.staticfile.org/vue-router/3.0.4/vue-router.min.js"></script>
    <script type="text/javascript" src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.min.js"></script>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but test-sport doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script>
        window.onload = function () {
            console.log(window)
            // 测试的vconsole
            if (window.prj.web_env !== 'prod') {
                javascript:(function(e){
                    e.setAttribute("src","https://mobile.aoyunsoft.com/vconsole.min.js");
                    document.getElementsByTagName("html")[0].appendChild(e);
                    e.onload = function () {
                        new VConsole()
                    }
                })(document.createElement("script"));void(0);
            }
        }
    </script>
  </body>
</html>
